import { getRequest, postRequest, postBodyRequest } from '@/libs/axios';

/**
 * 获取当前登录医生信息
 * @returns {Promise} 返回医生信息
 */
export const getDoctorInfo = () => {
  return getRequest('/zwz/doctor/info');
};

/**
 * 获取医生排班信息
 * @param {String} doctorId - 医生ID
 * @param {String} date - 日期，格式YYYY-MM-DD
 * @returns {Promise} 返回医生排班信息
 */
export const getDoctorSchedule = (doctorId, date) => {
  return getRequest('/zwz/doctor/schedule', {
    doctorId,
    date
  });
};

/**
 * 获取医生工作统计数据
 * @param {String} doctorId - 医生ID
 * @param {String} startDate - 开始日期，格式YYYY-MM-DD
 * @param {String} endDate - 结束日期，格式YYYY-MM-DD
 * @returns {Promise} 返回医生工作统计数据
 */
export const getDoctorStatistics = (doctorId, startDate, endDate) => {
  return getRequest('/zwz/doctor/statistics', {
    doctorId,
    startDate,
    endDate
  });
}; 